import { IsNotEmpty } from "class-validator"

export class CreateCommentDto {
  @IsNotEmpty({
    message: '评论内容不能为空',
  })
  content: string

  // @IsNotEmpty({
  //   message: '文章id不能为空'
  // })
  // blogId: number

  @IsNotEmpty({
    message: '业务id不能为空'
  })
  createId: number

  @IsNotEmpty({
    message: '业务类型不能为空'
  })
  type: number
  userId: number
  username: string

  avatar:string

  parentId: number

  reply: number // 0 1

  menberId: string

  like: number

  commentPic: string

  // type: number
}
